package com.webapp.manager.impl;

import java.util.List;

import com.webapp.basedata.Food;
import com.webapp.basedata.Order;
import com.webapp.basedata.User;
import com.webapp.dao.impl.OrderDaoImpl;
import com.webapp.manager.OrderManager;

public class OrderManagerImpl implements OrderManager {

	@Override
	public void addOrder(Food food, User user) {
		OrderDaoImpl daoImpl = new OrderDaoImpl();
		Order order = new Order();
		order.setFood(food);
		order.setUser(user);
		daoImpl.addOrder(order);
	}

	@Override
	public List<Order> seachOrder() {
		OrderDaoImpl daoImpl = new OrderDaoImpl();
		return daoImpl.seachOrders();
	}

}
